package com.hjm.project.message.message.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息列对象 messgae_info
 * 
 * @author wdw
 * @date 2020-11-26
 */
public class MessgaeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 添加消息用户id(订单消息时,为服务商编号) */
    @Excel(name = "添加消息用户id(订单消息时,为服务商编号)")
    private String addUserId;

    /** 添加人姓名 */
    @Excel(name = "添加人姓名")
    private String addName;

    /** 消息类型1:服务商消息2:商户消息 */
    @Excel(name = "消息类型1:服务商消息2:商户消息")
    private Integer type;

    /** 类型：1系统消息 2小喇叭消息 3常见问题 4活动消息 5奖励消息 6公告消息 7订单消息 */
    @Excel(name = "类型：1系统消息 2小喇叭消息 3常见问题 4活动消息 5奖励消息 6公告消息 7订单消息")
    private Integer status;

    /** 极光推送消息状态0-未推送1-已推送 */
    @Excel(name = "极光推送消息状态0-未推送1-已推送")
    private Integer jgStatus;

    /** 商品编号（订单消息时，为订单编号） */
    @Excel(name = "商品编号", readConverterExp = "订=单消息时，为订单编号")
    private String goodsId;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private String create_time;

    /** 修改时间 */
    @Excel(name = "修改时间")
    private String update_time;

    private String grade;

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setAddUserId(String addUserId)
    {
        this.addUserId = addUserId;
    }

    public String getAddUserId()
    {
        return addUserId;
    }
    public void setAddName(String addName)
    {
        this.addName = addName;
    }

    public String getAddName()
    {
        return addName;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setJgStatus(Integer jgStatus)
    {
        this.jgStatus = jgStatus;
    }

    public Integer getJgStatus()
    {
        return jgStatus;
    }
    public void setGoodsId(String goodsId)
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId()
    {
        return goodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("addUserId", getAddUserId())
            .append("addName", getAddName())
            .append("createTime", getCreate_time())
            .append("updateTime", getUpdate_time())
            .append("type", getType())
            .append("status", getStatus())
            .append("jgStatus", getJgStatus())
            .append("goodsId", getGoodsId())
            .toString();
    }
}
